package team.szm.scd.database.properties;

import com.baomidou.mybatisplus.annotation.IEnum;

import java.time.DayOfWeek;

public enum WeekEnum implements IEnum<Integer> {
    MONDAY(1, "周一"),
    TUESDAY(2, "周二"),
    WEDNESDAY(3, "周三"),
    THURSDAY(4, "周四"),
    FRIDAY(5, "周五"),
    SATURDAY(6, "周六"),
    SUNDAY(7, "周日"),
    ;
    private final int value;
    private final String description;

    WeekEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    @Override
    public String toString() {
        return description;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }
}
